home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / rdf / nsIRDFDataSource.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  24KB  |  476 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIRDFDataSource.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIRDFDataSource_h__
  6. #define __gen_nsIRDFDataSource_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. #ifndef __gen_nsISupportsArray_h__
  14. #include "nsISupportsArray.h"
  15. #endif
  16.  
  17. #ifndef __gen_nsIRDFResource_h__
  18. #include "nsIRDFResource.h"
  19. #endif
  20.  
  21. #ifndef __gen_nsIRDFNode_h__
  22. #include "nsIRDFNode.h"
  23. #endif
  24.  
  25. #ifndef __gen_nsISimpleEnumerator_h__
  26. #include "nsISimpleEnumerator.h"
  27. #endif
  28.  
  29. #ifndef __gen_nsIRDFObserver_h__
  30. #include "nsIRDFObserver.h"
  31. #endif
  32.  
  33. /* For IDL files that don't want to include root IDL files. */
  34. #ifndef NS_NO_VTABLE
  35. #define NS_NO_VTABLE
  36. #endif
  37. #include "nsISupportsArray.h"
  38.  
  39. /* starting interface:    nsIRDFDataSource */
  40. #define NS_IRDFDATASOURCE_IID_STR "0f78da58-8321-11d2-8eac-00805f29f370"
  41.  
  42. #define NS_IRDFDATASOURCE_IID \
  43.   {0x0f78da58, 0x8321, 0x11d2, \
  44.     { 0x8e, 0xac, 0x00, 0x80, 0x5f, 0x29, 0xf3, 0x70 }}
  45.  
  46. class NS_NO_VTABLE nsIRDFDataSource : public nsISupports {
  47.  public: 
  48.  
  49.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IRDFDATASOURCE_IID)
  50.  
  51.   /** The "URI" of the data source. This used by the RDF service's
  52.      * |GetDataSource()| method to cache datasources.
  53.      */
  54.   /* readonly attribute string URI; */
  55.   NS_IMETHOD GetURI(char * *aURI) = 0;
  56.  
  57.   /** Find an RDF resource that points to a given node over the
  58.      * specified arc & truth value
  59.      *
  60.      * @return NS_RDF_NO_VALUE if there is no source that leads
  61.      * to the target with the specified property.
  62.      */
  63.   /* nsIRDFResource GetSource (in nsIRDFResource aProperty, in nsIRDFNode aTarget, in boolean aTruthValue); */
  64.   NS_IMETHOD GetSource(nsIRDFResource *aProperty, nsIRDFNode *aTarget, PRBool aTruthValue, nsIRDFResource **_retval) = 0;
  65.  
  66.   /**
  67.      * Find all RDF resources that point to a given node over the
  68.      * specified arc & truth value
  69.      *
  70.      * @return NS_OK unless a catastrophic error occurs. If the
  71.      * method returns NS_OK, you may assume that nsISimpleEnumerator points
  72.      * to a valid (but possibly empty) cursor.
  73.      */
  74.   /* nsISimpleEnumerator GetSources (in nsIRDFResource aProperty, in nsIRDFNode aTarget, in boolean aTruthValue); */
  75.   NS_IMETHOD GetSources(nsIRDFResource *aProperty, nsIRDFNode *aTarget, PRBool aTruthValue, nsISimpleEnumerator **_retval) = 0;
  76.  
  77.   /**
  78.      * Find a child of that is related to the source by the given arc
  79.      * arc and truth value
  80.      *
  81.      * @return NS_RDF_NO_VALUE if there is no target accessable from the
  82.      * source via the specified property.
  83.      */
  84.   /* nsIRDFNode GetTarget (in nsIRDFResource aSource, in nsIRDFResource aProperty, in boolean aTruthValue); */
  85.   NS_IMETHOD GetTarget(nsIRDFResource *aSource, nsIRDFResource *aProperty, PRBool aTruthValue, nsIRDFNode **_retval) = 0;
  86.  
  87.   /**
  88.      * Find all children of that are related to the source by the given arc
  89.      * arc and truth value.
  90.      *
  91.      * @return NS_OK unless a catastrophic error occurs. If the
  92.      * method returns NS_OK, you may assume that nsISimpleEnumerator points
  93.      * to a valid (but possibly empty) cursor.
  94.      */
  95.   /* nsISimpleEnumerator GetTargets (in nsIRDFResource aSource, in nsIRDFResource aProperty, in boolean aTruthValue); */
  96.   NS_IMETHOD GetTargets(nsIRDFResource *aSource, nsIRDFResource *aProperty, PRBool aTruthValue, nsISimpleEnumerator **_retval) = 0;
  97.  
  98.   /**
  99.      * Add an assertion to the graph.
  100.      */
  101.   /* void Assert (in nsIRDFResource aSource, in nsIRDFResource aProperty, in nsIRDFNode aTarget, in boolean aTruthValue); */
  102.   NS_IMETHOD Assert(nsIRDFResource *aSource, nsIRDFResource *aProperty, nsIRDFNode *aTarget, PRBool aTruthValue) = 0;
  103.  
  104.   /**
  105.      * Remove an assertion from the graph.
  106.      */
  107.   /* void Unassert (in nsIRDFResource aSource, in nsIRDFResource aProperty, in nsIRDFNode aTarget); */
  108.   NS_IMETHOD Unassert(nsIRDFResource *aSource, nsIRDFResource *aProperty, nsIRDFNode *aTarget) = 0;
  109.  
  110.   /**
  111.      * Change an assertion from
  112.      *
  113.      *   [aSource]--[aProperty]-->[aOldTarget]
  114.      *
  115.      * to
  116.      * 
  117.      *   [aSource]--[aProperty]-->[aNewTarget]
  118.      */
  119.   /* void Change (in nsIRDFResource aSource, in nsIRDFResource aProperty, in nsIRDFNode aOldTarget, in nsIRDFNode aNewTarget); */
  120.   NS_IMETHOD Change(nsIRDFResource *aSource, nsIRDFResource *aProperty, nsIRDFNode *aOldTarget, nsIRDFNode *aNewTarget) = 0;
  121.  
  122.   /**
  123.      * 'Move' an assertion from
  124.      *
  125.      *   [aOldSource]--[aProperty]-->[aTarget]
  126.      *
  127.      * to
  128.      * 
  129.      *   [aNewSource]--[aProperty]-->[aTarget]
  130.      */
  131.   /* void Move (in nsIRDFResource aOldSource, in nsIRDFResource aNewSource, in nsIRDFResource aProperty, in nsIRDFNode aTarget); */
  132.   NS_IMETHOD Move(nsIRDFResource *aOldSource, nsIRDFResource *aNewSource, nsIRDFResource *aProperty, nsIRDFNode *aTarget) = 0;
  133.  
  134.   /**
  135.      * Query whether an assertion exists in this graph.
  136.      */
  137.   /* boolean HasAssertion (in nsIRDFResource aSource, in nsIRDFResource aProperty, in nsIRDFNode aTarget, in boolean aTruthValue); */
  138.   NS_IMETHOD HasAssertion(nsIRDFResource *aSource, nsIRDFResource *aProperty, nsIRDFNode *aTarget, PRBool aTruthValue, PRBool *_retval) = 0;
  139.  
  140.   /**
  141.      * Add an observer to this data source. If the datasource
  142.      * supports observers, the datasource source should hold a strong
  143.      * reference to the observer.
  144.      */
  145.   /* void AddObserver (in nsIRDFObserver aObserver); */
  146.   NS_IMETHOD AddObserver(nsIRDFObserver *aObserver) = 0;
  147.  
  148.   /**
  149.      * Remove an observer from this data source.
  150.      */
  151.   /* void RemoveObserver (in nsIRDFObserver aObserver); */
  152.   NS_IMETHOD RemoveObserver(nsIRDFObserver *aObserver) = 0;
  153.  
  154.   /**
  155.      * Get a cursor to iterate over all the arcs that point into a node.
  156.      *
  157.      * @return NS_OK unless a catastrophic error occurs. If the method
  158.      * returns NS_OK, you may assume that labels points to a valid (but
  159.      * possible empty) nsISimpleEnumerator object.
  160.      */
  161.   /* nsISimpleEnumerator ArcLabelsIn (in nsIRDFNode aNode); */
  162.   NS_IMETHOD ArcLabelsIn(nsIRDFNode *aNode, nsISimpleEnumerator **_retval) = 0;
  163.  
  164.   /**
  165.      * Get a cursor to iterate over all the arcs that originate in
  166.      * a resource.
  167.      *
  168.      * @return NS_OK unless a catastrophic error occurs. If the method
  169.      * returns NS_OK, you may assume that labels points to a valid (but
  170.      * possible empty) nsISimpleEnumerator object.
  171.      */
  172.   /* nsISimpleEnumerator ArcLabelsOut (in nsIRDFResource aSource); */
  173.   NS_IMETHOD ArcLabelsOut(nsIRDFResource *aSource, nsISimpleEnumerator **_retval) = 0;
  174.  
  175.   /**
  176.      * Retrieve all of the resources that the data source currently
  177.      * refers to.
  178.      */
  179.   /* nsISimpleEnumerator GetAllResources (); */
  180.   NS_IMETHOD GetAllResources(nsISimpleEnumerator **_retval) = 0;
  181.  
  182.   /**
  183.      * Returns whether a given command is enabled for a set of sources. 
  184.      */
  185.   /* boolean IsCommandEnabled (in nsISupportsArray aSources, in nsIRDFResource aCommand, in nsISupportsArray aArguments); */
  186.   NS_IMETHOD IsCommandEnabled(nsISupportsArray *aSources, nsIRDFResource *aCommand, nsISupportsArray *aArguments, PRBool *_retval) = 0;
  187.  
  188.   /**
  189.      * Perform the specified command on set of sources.
  190.      */
  191.   /* void DoCommand (in nsISupportsArray aSources, in nsIRDFResource aCommand, in nsISupportsArray aArguments); */
  192.   NS_IMETHOD DoCommand(nsISupportsArray *aSources, nsIRDFResource *aCommand, nsISupportsArray *aArguments) = 0;
  193.  
  194.   /**
  195.      * Returns the set of all commands defined for a given source.
  196.      */
  197.   /* nsISimpleEnumerator GetAllCmds (in nsIRDFResource aSource); */
  198.   NS_IMETHOD GetAllCmds(nsIRDFResource *aSource, nsISimpleEnumerator **_retval) = 0;
  199.  
  200.   /**
  201.      * Returns true if the specified node is pointed to by the specified arc.
  202.      * Equivalent to enumerating ArcLabelsIn and comparing for the specified arc.
  203.      */
  204.   /* boolean hasArcIn (in nsIRDFNode aNode, in nsIRDFResource aArc); */
  205.   NS_IMETHOD HasArcIn(nsIRDFNode *aNode, nsIRDFResource *aArc, PRBool *_retval) = 0;
  206.  
  207.   /**
  208.      * Returns true if the specified node has the specified outward arc.
  209.      * Equivalent to enumerating ArcLabelsOut and comparing for the specified arc.
  210.      */
  211.   /* boolean hasArcOut (in nsIRDFResource aSource, in nsIRDFResource aArc); */
  212.   NS_IMETHOD HasArcOut(nsIRDFResource *aSource, nsIRDFResource *aArc, PRBool *_retval) = 0;
  213.  
  214.   /**
  215.      * Notify observers that the datasource is about to send several
  216.      * notifications at once.
  217.      * This must be followed by calling endUpdateBatch(), otherwise
  218.      * viewers will get out of sync.
  219.      */
  220.   /* void beginUpdateBatch (); */
  221.   NS_IMETHOD BeginUpdateBatch(void) = 0;
  222.  
  223.   /**
  224.      * Notify observers that the datasource has completed issuing
  225.      * a notification group.
  226.      */
  227.   /* void endUpdateBatch (); */
  228.   NS_IMETHOD EndUpdateBatch(void) = 0;
  229.  
  230. };
  231.  
  232. /* Use this macro when declaring classes that implement this interface. */
  233. #define NS_DECL_NSIRDFDATASOURCE \
  234.   NS_IMETHOD GetURI(char * *aURI); \
  235.   NS_IMETHOD GetSource(nsIRDFResource *aProperty, nsIRDFNode *aTarget, PRBool aTruthValue, nsIRDFResource **_retval); \
  236.   NS_IMETHOD GetSources(nsIRDFResource *aProperty, nsIRDFNode *aTarget, PRBool aTruthValue, nsISimpleEnumerator **_retval); \
  237.   NS_IMETHOD GetTarget(nsIRDFResource *aSource, nsIRDFResource *aProperty, PRBool aTruthValue, nsIRDFNode **_retval); \
  238.   NS_IMETHOD GetTargets(nsIRDFResource *aSource, nsIRDFResource *aProperty, PRBool aTruthValue, nsISimpleEnumerator **_retval); \
  239.   NS_IMETHOD Assert(nsIRDFResource *aSource, nsIRDFResource *aProperty, nsIRDFNode *aTarget, PRBool aTruthValue); \
  240.   NS_IMETHOD Unassert(nsIRDFResource *aSource, nsIRDFResource *aProperty, nsIRDFNode *aTarget); \
  241.   NS_IMETHOD Change(nsIRDFResource *aSource, nsIRDFResource *aProperty, nsIRDFNode *aOldTarget, nsIRDFNode *aNewTarget); \
  242.   NS_IMETHOD Move(nsIRDFResource *aOldSource, nsIRDFResource *aNewSource, nsIRDFResource *aProperty, nsIRDFNode *aTarget); \
  243.   NS_IMETHOD HasAssertion(nsIRDFResource *aSource, nsIRDFResource *aProperty, nsIRDFNode *aTarget, PRBool aTruthValue, PRBool *_retval); \
  244.   NS_IMETHOD AddObserver(nsIRDFObserver *aObserver); \
  245.   NS_IMETHOD RemoveObserver(nsIRDFObserver *aObserver); \
  246.   NS_IMETHOD ArcLabelsIn(nsIRDFNode *aNode, nsISimpleEnumerator **_retval); \
  247.   NS_IMETHOD ArcLabelsOut(nsIRDFResource *aSource, nsISimpleEnumerator **_retval); \
  248.   NS_IMETHOD GetAllResources(nsISimpleEnumerator **_retval); \
  249.   NS_IMETHOD IsCommandEnabled(nsISupportsArray *aSources, nsIRDFResource *aCommand, nsISupportsArray *aArguments, PRBool *_retval); \
  250.   NS_IMETHOD DoCommand(nsISupportsArray *aSources, nsIRDFResource *aCommand, nsISupportsArray *aArguments); \
  251.   NS_IMETHOD GetAllCmds(nsIRDFResource *aSource, nsISimpleEnumerator **_retval); \
  252.   NS_IMETHOD HasArcIn(nsIRDFNode *aNode, nsIRDFResource *aArc, PRBool *_retval); \
  253.   NS_IMETHOD HasArcOut(nsIRDFResource *aSource, nsIRDFResource *aArc, PRBool *_retval); \
  254.   NS_IMETHOD BeginUpdateBatch(void); \
  255.   NS_IMETHOD EndUpdateBatch(void); 
  256.  
  257. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  258. #define NS_FORWARD_NSIRDFDATASOURCE(_to) \
  259.   NS_IMETHOD GetURI(char * *aURI) { return _to GetURI(aURI); } \
  260.   NS_IMETHOD GetSource(nsIRDFResource *aProperty, nsIRDFNode *aTarget, PRBool aTruthValue, nsIRDFResource **_retval) { return _to GetSource(aProperty, aTarget, aTruthValue, _retval); } \
  261.   NS_IMETHOD GetSources(nsIRDFResource *aProperty, nsIRDFNode *aTarget, PRBool aTruthValue, nsISimpleEnumerator **_retval) { return _to GetSources(aProperty, aTarget, aTruthValue, _retval); } \
  262.   NS_IMETHOD GetTarget(nsIRDFResource *aSource, nsIRDFResource *aProperty, PRBool aTruthValue, nsIRDFNode **_retval) { return _to GetTarget(aSource, aProperty, aTruthValue, _retval); } \
  263.   NS_IMETHOD GetTargets(nsIRDFResource *aSource, nsIRDFResource *aProperty, PRBool aTruthValue, nsISimpleEnumerator **_retval) { return _to GetTargets(aSource, aProperty, aTruthValue, _retval); } \
  264.   NS_IMETHOD Assert(nsIRDFResource *aSource, nsIRDFResource *aProperty, nsIRDFNode *aTarget, PRBool aTruthValue) { return _to Assert(aSource, aProperty, aTarget, aTruthValue); } \
  265.   NS_IMETHOD Unassert(nsIRDFResource *aSource, nsIRDFResource *aProperty, nsIRDFNode *aTarget) { return _to Unassert(aSource, aProperty, aTarget); } \
  266.   NS_IMETHOD Change(nsIRDFResource *aSource, nsIRDFResource *aProperty, nsIRDFNode *aOldTarget, nsIRDFNode *aNewTarget) { return _to Change(aSource, aProperty, aOldTarget, aNewTarget); } \
  267.   NS_IMETHOD Move(nsIRDFResource *aOldSource, nsIRDFResource *aNewSource, nsIRDFResource *aProperty, nsIRDFNode *aTarget) { return _to Move(aOldSource, aNewSource, aProperty, aTarget); } \
  268.   NS_IMETHOD HasAssertion(nsIRDFResource *aSource, nsIRDFResource *aProperty, nsIRDFNode *aTarget, PRBool aTruthValue, PRBool *_retval) { return _to HasAssertion(aSource, aProperty, aTarget, aTruthValue, _retval); } \
  269.   NS_IMETHOD AddObserver(nsIRDFObserver *aObserver) { return _to AddObserver(aObserver); } \
  270.   NS_IMETHOD RemoveObserver(nsIRDFObserver *aObserver) { return _to RemoveObserver(aObserver); } \
  271.   NS_IMETHOD ArcLabelsIn(nsIRDFNode *aNode, nsISimpleEnumerator **_retval) { return _to ArcLabelsIn(aNode, _retval); } \
  272.   NS_IMETHOD ArcLabelsOut(nsIRDFResource *aSource, nsISimpleEnumerator **_retval) { return _to ArcLabelsOut(aSource, _retval); } \
  273.   NS_IMETHOD GetAllResources(nsISimpleEnumerator **_retval) { return _to GetAllResources(_retval); } \
  274.   NS_IMETHOD IsCommandEnabled(nsISupportsArray *aSources, nsIRDFResource *aCommand, nsISupportsArray *aArguments, PRBool *_retval) { return _to IsCommandEnabled(aSources, aCommand, aArguments, _retval); } \
  275.   NS_IMETHOD DoCommand(nsISupportsArray *aSources, nsIRDFResource *aCommand, nsISupportsArray *aArguments) { return _to DoCommand(aSources, aCommand, aArguments); } \
  276.   NS_IMETHOD GetAllCmds(nsIRDFResource *aSource, nsISimpleEnumerator **_retval) { return _to GetAllCmds(aSource, _retval); } \
  277.   NS_IMETHOD HasArcIn(nsIRDFNode *aNode, nsIRDFResource *aArc, PRBool *_retval) { return _to HasArcIn(aNode, aArc, _retval); } \
  278.   NS_IMETHOD HasArcOut(nsIRDFResource *aSource, nsIRDFResource *aArc, PRBool *_retval) { return _to HasArcOut(aSource, aArc, _retval); } \
  279.   NS_IMETHOD BeginUpdateBatch(void) { return _to BeginUpdateBatch(); } \
  280.   NS_IMETHOD EndUpdateBatch(void) { return _to EndUpdateBatch(); } 
  281.  
  282. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  283. #define NS_FORWARD_SAFE_NSIRDFDATASOURCE(_to) \
  284.   NS_IMETHOD GetURI(char * *aURI) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetURI(aURI); } \
  285.   NS_IMETHOD GetSource(nsIRDFResource *aProperty, nsIRDFNode *aTarget, PRBool aTruthValue, nsIRDFResource **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSource(aProperty, aTarget, aTruthValue, _retval); } \
  286.   NS_IMETHOD GetSources(nsIRDFResource *aProperty, nsIRDFNode *aTarget, PRBool aTruthValue, nsISimpleEnumerator **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSources(aProperty, aTarget, aTruthValue, _retval); } \
  287.   NS_IMETHOD GetTarget(nsIRDFResource *aSource, nsIRDFResource *aProperty, PRBool aTruthValue, nsIRDFNode **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTarget(aSource, aProperty, aTruthValue, _retval); } \
  288.   NS_IMETHOD GetTargets(nsIRDFResource *aSource, nsIRDFResource *aProperty, PRBool aTruthValue, nsISimpleEnumerator **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTargets(aSource, aProperty, aTruthValue, _retval); } \
  289.   NS_IMETHOD Assert(nsIRDFResource *aSource, nsIRDFResource *aProperty, nsIRDFNode *aTarget, PRBool aTruthValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->Assert(aSource, aProperty, aTarget, aTruthValue); } \
  290.   NS_IMETHOD Unassert(nsIRDFResource *aSource, nsIRDFResource *aProperty, nsIRDFNode *aTarget) { return !_to ? NS_ERROR_NULL_POINTER : _to->Unassert(aSource, aProperty, aTarget); } \
  291.   NS_IMETHOD Change(nsIRDFResource *aSource, nsIRDFResource *aProperty, nsIRDFNode *aOldTarget, nsIRDFNode *aNewTarget) { return !_to ? NS_ERROR_NULL_POINTER : _to->Change(aSource, aProperty, aOldTarget, aNewTarget); } \
  292.   NS_IMETHOD Move(nsIRDFResource *aOldSource, nsIRDFResource *aNewSource, nsIRDFResource *aProperty, nsIRDFNode *aTarget) { return !_to ? NS_ERROR_NULL_POINTER : _to->Move(aOldSource, aNewSource, aProperty, aTarget); } \
  293.   NS_IMETHOD HasAssertion(nsIRDFResource *aSource, nsIRDFResource *aProperty, nsIRDFNode *aTarget, PRBool aTruthValue, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->HasAssertion(aSource, aProperty, aTarget, aTruthValue, _retval); } \
  294.   NS_IMETHOD AddObserver(nsIRDFObserver *aObserver) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddObserver(aObserver); } \
  295.   NS_IMETHOD RemoveObserver(nsIRDFObserver *aObserver) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveObserver(aObserver); } \
  296.   NS_IMETHOD ArcLabelsIn(nsIRDFNode *aNode, nsISimpleEnumerator **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->ArcLabelsIn(aNode, _retval); } \
  297.   NS_IMETHOD ArcLabelsOut(nsIRDFResource *aSource, nsISimpleEnumerator **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->ArcLabelsOut(aSource, _retval); } \
  298.   NS_IMETHOD GetAllResources(nsISimpleEnumerator **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAllResources(_retval); } \
  299.   NS_IMETHOD IsCommandEnabled(nsISupportsArray *aSources, nsIRDFResource *aCommand, nsISupportsArray *aArguments, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->IsCommandEnabled(aSources, aCommand, aArguments, _retval); } \
  300.   NS_IMETHOD DoCommand(nsISupportsArray *aSources, nsIRDFResource *aCommand, nsISupportsArray *aArguments) { return !_to ? NS_ERROR_NULL_POINTER : _to->DoCommand(aSources, aCommand, aArguments); } \
  301.   NS_IMETHOD GetAllCmds(nsIRDFResource *aSource, nsISimpleEnumerator **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAllCmds(aSource, _retval); } \
  302.   NS_IMETHOD HasArcIn(nsIRDFNode *aNode, nsIRDFResource *aArc, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->HasArcIn(aNode, aArc, _retval); } \
  303.   NS_IMETHOD HasArcOut(nsIRDFResource *aSource, nsIRDFResource *aArc, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->HasArcOut(aSource, aArc, _retval); } \
  304.   NS_IMETHOD BeginUpdateBatch(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->BeginUpdateBatch(); } \
  305.   NS_IMETHOD EndUpdateBatch(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->EndUpdateBatch(); } 
  306.  
  307. #if 0
  308. /* Use the code below as a template for the implementation class for this interface. */
  309.  
  310. /* Header file */
  311. class nsRDFDataSource : public nsIRDFDataSource
  312. {
  313. public:
  314.   NS_DECL_ISUPPORTS
  315.   NS_DECL_NSIRDFDATASOURCE
  316.  
  317.   nsRDFDataSource();
  318.  
  319. private:
  320.   ~nsRDFDataSource();
  321.  
  322. protected:
  323.   /* additional members */
  324. };
  325.  
  326. /* Implementation file */
  327. NS_IMPL_ISUPPORTS1(nsRDFDataSource, nsIRDFDataSource)
  328.  
  329. nsRDFDataSource::nsRDFDataSource()
  330. {
  331.   /* member initializers and constructor code */
  332. }
  333.  
  334. nsRDFDataSource::~nsRDFDataSource()
  335. {
  336.   /* destructor code */
  337. }
  338.  
  339. /* readonly attribute string URI; */
  340. NS_IMETHODIMP nsRDFDataSource::GetURI(char * *aURI)
  341. {
  342.     return NS_ERROR_NOT_IMPLEMENTED;
  343. }
  344.  
  345. /* nsIRDFResource GetSource (in nsIRDFResource aProperty, in nsIRDFNode aTarget, in boolean aTruthValue); */
  346. NS_IMETHODIMP nsRDFDataSource::GetSource(nsIRDFResource *aProperty, nsIRDFNode *aTarget, PRBool aTruthValue, nsIRDFResource **_retval)
  347. {
  348.     return NS_ERROR_NOT_IMPLEMENTED;
  349. }
  350.  
  351. /* nsISimpleEnumerator GetSources (in nsIRDFResource aProperty, in nsIRDFNode aTarget, in boolean aTruthValue); */
  352. NS_IMETHODIMP nsRDFDataSource::GetSources(nsIRDFResource *aProperty, nsIRDFNode *aTarget, PRBool aTruthValue, nsISimpleEnumerator **_retval)
  353. {
  354.     return NS_ERROR_NOT_IMPLEMENTED;
  355. }
  356.  
  357. /* nsIRDFNode GetTarget (in nsIRDFResource aSource, in nsIRDFResource aProperty, in boolean aTruthValue); */
  358. NS_IMETHODIMP nsRDFDataSource::GetTarget(nsIRDFResource *aSource, nsIRDFResource *aProperty, PRBool aTruthValue, nsIRDFNode **_retval)
  359. {
  360.     return NS_ERROR_NOT_IMPLEMENTED;
  361. }
  362.  
  363. /* nsISimpleEnumerator GetTargets (in nsIRDFResource aSource, in nsIRDFResource aProperty, in boolean aTruthValue); */
  364. NS_IMETHODIMP nsRDFDataSource::GetTargets(nsIRDFResource *aSource, nsIRDFResource *aProperty, PRBool aTruthValue, nsISimpleEnumerator **_retval)
  365. {
  366.     return NS_ERROR_NOT_IMPLEMENTED;
  367. }
  368.  
  369. /* void Assert (in nsIRDFResource aSource, in nsIRDFResource aProperty, in nsIRDFNode aTarget, in boolean aTruthValue); */
  370. NS_IMETHODIMP nsRDFDataSource::Assert(nsIRDFResource *aSource, nsIRDFResource *aProperty, nsIRDFNode *aTarget, PRBool aTruthValue)
  371. {
  372.     return NS_ERROR_NOT_IMPLEMENTED;
  373. }
  374.  
  375. /* void Unassert (in nsIRDFResource aSource, in nsIRDFResource aProperty, in nsIRDFNode aTarget); */
  376. NS_IMETHODIMP nsRDFDataSource::Unassert(nsIRDFResource *aSource, nsIRDFResource *aProperty, nsIRDFNode *aTarget)
  377. {
  378.     return NS_ERROR_NOT_IMPLEMENTED;
  379. }
  380.  
  381. /* void Change (in nsIRDFResource aSource, in nsIRDFResource aProperty, in nsIRDFNode aOldTarget, in nsIRDFNode aNewTarget); */
  382. NS_IMETHODIMP nsRDFDataSource::Change(nsIRDFResource *aSource, nsIRDFResource *aProperty, nsIRDFNode *aOldTarget, nsIRDFNode *aNewTarget)
  383. {
  384.     return NS_ERROR_NOT_IMPLEMENTED;
  385. }
  386.  
  387. /* void Move (in nsIRDFResource aOldSource, in nsIRDFResource aNewSource, in nsIRDFResource aProperty, in nsIRDFNode aTarget); */
  388. NS_IMETHODIMP nsRDFDataSource::Move(nsIRDFResource *aOldSource, nsIRDFResource *aNewSource, nsIRDFResource *aProperty, nsIRDFNode *aTarget)
  389. {
  390.     return NS_ERROR_NOT_IMPLEMENTED;
  391. }
  392.  
  393. /* boolean HasAssertion (in nsIRDFResource aSource, in nsIRDFResource aProperty, in nsIRDFNode aTarget, in boolean aTruthValue); */
  394. NS_IMETHODIMP nsRDFDataSource::HasAssertion(nsIRDFResource *aSource, nsIRDFResource *aProperty, nsIRDFNode *aTarget, PRBool aTruthValue, PRBool *_retval)
  395. {
  396.     return NS_ERROR_NOT_IMPLEMENTED;
  397. }
  398.  
  399. /* void AddObserver (in nsIRDFObserver aObserver); */
  400. NS_IMETHODIMP nsRDFDataSource::AddObserver(nsIRDFObserver *aObserver)
  401. {
  402.     return NS_ERROR_NOT_IMPLEMENTED;
  403. }
  404.  
  405. /* void RemoveObserver (in nsIRDFObserver aObserver); */
  406. NS_IMETHODIMP nsRDFDataSource::RemoveObserver(nsIRDFObserver *aObserver)
  407. {
  408.     return NS_ERROR_NOT_IMPLEMENTED;
  409. }
  410.  
  411. /* nsISimpleEnumerator ArcLabelsIn (in nsIRDFNode aNode); */
  412. NS_IMETHODIMP nsRDFDataSource::ArcLabelsIn(nsIRDFNode *aNode, nsISimpleEnumerator **_retval)
  413. {
  414.     return NS_ERROR_NOT_IMPLEMENTED;
  415. }
  416.  
  417. /* nsISimpleEnumerator ArcLabelsOut (in nsIRDFResource aSource); */
  418. NS_IMETHODIMP nsRDFDataSource::ArcLabelsOut(nsIRDFResource *aSource, nsISimpleEnumerator **_retval)
  419. {
  420.     return NS_ERROR_NOT_IMPLEMENTED;
  421. }
  422.  
  423. /* nsISimpleEnumerator GetAllResources (); */
  424. NS_IMETHODIMP nsRDFDataSource::GetAllResources(nsISimpleEnumerator **_retval)
  425. {
  426.     return NS_ERROR_NOT_IMPLEMENTED;
  427. }
  428.  
  429. /* boolean IsCommandEnabled (in nsISupportsArray aSources, in nsIRDFResource aCommand, in nsISupportsArray aArguments); */
  430. NS_IMETHODIMP nsRDFDataSource::IsCommandEnabled(nsISupportsArray *aSources, nsIRDFResource *aCommand, nsISupportsArray *aArguments, PRBool *_retval)
  431. {
  432.     return NS_ERROR_NOT_IMPLEMENTED;
  433. }
  434.  
  435. /* void DoCommand (in nsISupportsArray aSources, in nsIRDFResource aCommand, in nsISupportsArray aArguments); */
  436. NS_IMETHODIMP nsRDFDataSource::DoCommand(nsISupportsArray *aSources, nsIRDFResource *aCommand, nsISupportsArray *aArguments)
  437. {
  438.     return NS_ERROR_NOT_IMPLEMENTED;
  439. }
  440.  
  441. /* nsISimpleEnumerator GetAllCmds (in nsIRDFResource aSource); */
  442. NS_IMETHODIMP nsRDFDataSource::GetAllCmds(nsIRDFResource *aSource, nsISimpleEnumerator **_retval)
  443. {
  444.     return NS_ERROR_NOT_IMPLEMENTED;
  445. }
  446.  
  447. /* boolean hasArcIn (in nsIRDFNode aNode, in nsIRDFResource aArc); */
  448. NS_IMETHODIMP nsRDFDataSource::HasArcIn(nsIRDFNode *aNode, nsIRDFResource *aArc, PRBool *_retval)
  449. {
  450.     return NS_ERROR_NOT_IMPLEMENTED;
  451. }
  452.  
  453. /* boolean hasArcOut (in nsIRDFResource aSource, in nsIRDFResource aArc); */
  454. NS_IMETHODIMP nsRDFDataSource::HasArcOut(nsIRDFResource *aSource, nsIRDFResource *aArc, PRBool *_retval)
  455. {
  456.     return NS_ERROR_NOT_IMPLEMENTED;
  457. }
  458.  
  459. /* void beginUpdateBatch (); */
  460. NS_IMETHODIMP nsRDFDataSource::BeginUpdateBatch()
  461. {
  462.     return NS_ERROR_NOT_IMPLEMENTED;
  463. }
  464.  
  465. /* void endUpdateBatch (); */
  466. NS_IMETHODIMP nsRDFDataSource::EndUpdateBatch()
  467. {
  468.     return NS_ERROR_NOT_IMPLEMENTED;
  469. }
  470.  
  471. /* End of implementation class template. */
  472. #endif
  473.  
  474.  
  475. #endif /* __gen_nsIRDFDataSource_h__ */
  476.